package com.example.marketing.business;

import java.math.BigDecimal;

public class Order {

    private final String orderId;
    private final BigDecimal totalAmount;
    private final User user;
    private final boolean hasParticipatedLottery;

    public Order(String orderId, BigDecimal totalAmount, User user, boolean hasParticipatedLottery) {
        this.orderId = orderId;
        this.totalAmount = totalAmount;
        this.user = user;
        this.hasParticipatedLottery = hasParticipatedLottery;
    }

    public String getOrderId() {
        return orderId;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public User getUser() {
        return user;
    }

    public boolean hasParticipatedLottery() {
        return hasParticipatedLottery;
    }
}
